package cn.wuxing.mediation.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.wuxing.mediation.common.annotation.Excel;
import cn.wuxing.mediation.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 cm_template
 *
 * @author mediation
 * @date 2024-09-26
 */
public class SysTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板id */
    private Long id;

    /** 模板标题 */
    @Excel(name = "模板标题")
    private String title;

    /** 前端模板内容 */
    @Excel(name = "前端模板内容")
    private String contentWeb;

    /** 后端处理模板内容 */
    @Excel(name = "后端处理模板内容")
    private String content;

    /** 模板位置 */
    @Excel(name = "模板位置")
    private String filePath;

    /** 字段配置 */
    @Excel(name = "字段配置")
    private String field;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 回溯模板 */
    @Excel(name = "回溯模板")
    private String tempContent;

    /**
     * 前端字段参数
     */
    private List<List<String>> fieldConfig;

    public String getTempContent() {
        return tempContent;
    }

    public void setTempContent(String tempContent) {
        this.tempContent = tempContent;
    }

    public List<List<String>> getFieldConfig() {
        return fieldConfig;
    }

    public void setFieldConfig(List<List<String>> fieldConfig) {
        this.fieldConfig = fieldConfig;
    }

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContentWeb(String contentWeb)
    {
        this.contentWeb = contentWeb;
    }

    public String getContentWeb()
    {
        return contentWeb;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setField(String field)
    {
        this.field = field;
    }

    public String getField()
    {
        return field;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("contentWeb", getContentWeb())
            .append("content", getContent())
            .append("filePath", getFilePath())
            .append("field", getField())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
